<%@ page language="java" contentType="text/html; charset=UTF-8" import="org.springframework.ui.ModelMap" import="java.util.*,com.device.operating.entity.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="/xasj/easyui/themes/color.css">
<script type="text/javascript" src="/xasj/easyui/jquery.min.js"></script>
<script type="text/javascript" src="/xasj/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/xasj/js/dvoperate/addolt.js"></script>
<script type="text/javascript">
function selectPanel(){
	$.messager.prompt('Prompt','Please enter the panel title:',function(s){
		if (s){
			$('#aa').accordion('select',s);
		}
	});
}
var idx = 1;
function addPanel(){
	$('#aa').accordion('add',{
		title:'Title'+idx,
		href:'todvparent',
	    onLoad:function(){    
	    	$.getScript('/xasj/js/component/dvparent.js');  
	    }   
		//content:'<div style="padding:10px">Content'+idx+'</div>'
	});
	idx++;
}
function removePanel(){
	var pp = $('#aa').accordion('getSelected');
	if (pp){
		var index = $('#aa').accordion('getPanelIndex',pp);
		$('#aa').accordion('remove',index);
	}
}
</script>
</head>
<body>
		<div id="aa" class="easyui-accordion"  style="width:900px;height:550px" data-options="animate:false">
		<div title="添加OLT设备" data-options="iconCls:'icon-ok'" style="overflow:auto;padding-left:15px;padding-top:5px;height:435px">	
		<table id="newolt" class="easyui-datagrid" style="width:850px;height:450px"
			data-options="singleSelect:true,collapsible:true">
			<thead>
			<tr>
				<th data-options="field:'1',width:60">OLT设备</th>
				<th data-options="field:'2',width:240"></th>
				<th data-options="field:'3',width:70"></th>
				<th data-options="field:'4',width:140"></th>
				<th data-options="field:'5',width:70"></th>
				<th data-options="field:'6',width:190"></th>
			</tr>
			<thead>
			<tbody>
			<tr>
			<td>节点名称：</td><td><input id="oltname" style="width:160px"></td>
			<td>PON口数：</td><td><input id="oltponnum"  style="width:80px"/><input id="ylpon" style="width:50px"/></td>
			<td>板卡数：</td><td><input id="boardnum" style="width:80px"/></td>
			</tr>
			<tr>
			<td>设备类型：</td><td><select id="olttype" panelHeight="auto" style="width:100px">
			<option value="0">请选择</option>
			<option value="1">FTTH</option>	
			<option value="2">FTTB</option>						
			</select></td>
			<td>PON口类型：</td><td><select id="oltpontype" panelHeight="auto" style="width:80px">
			<option value="0">请选择</option>
			<option value="1">GPON</option>	
			<option value="2">EPON</option>						
			</select></td>
			<td>管理VLAN：</td><td><input id="advlan" style="width:80px"/></td>
			</tr>
			<tr>
			<td>设备厂商：</td><td><a id="xinghao"></a></td>
			</tr>			
			<tr>
			<td>汇接：</td><td><a id="jfl"></a></td>	
			</tr>
			<tr>
			<td>IP地址：</td><td><input id="requestipnum" style="width:57px"/><input id="getoltip" style="width:173px" /></td>
			<td>网关：</td><td><input id="getgw" style="width:153px"/></td>
			<td>IP地址段：</td><td><input id="iprange" style="width:230px"/></td>
			</tr>
			<tr>
			<td>语音地址：</td><td><input id="voipnum" style="width:57px"/><input id="getoltvoip" style="width:173px" /></td>
			<td>语音网关：</td><td><input id="voipgw" style="width:153px"/></td>
			<td>语音地址段：</td><td><input id="voiprange" style="width:230px"/></td>
			</tr>
			<tr>
			<td>
			VLAN生成：
			</td>
			<td>
			<input id="pppvlanbegin" style="width:160px"/>至:
			<input id="pppvlanend" style="width:200px"/>
			</td>
			<td>
			</td>
			</tr>
			<tr>
			<td>
			iptv vlan
			</td>
			<td>
			<input id="iptvvlan" style="width:160px"/>
			</td>
			<td>
			预留 vlan
			</td>
			<td>
			<input id="ylvlan" style="width:160px"/>
			</td>
			<td>
			voip vlan
			</td>
			<td>
			<input id="voipvlan" style="width:160px"/>
			</td>
			</tr>
			<tr>
			<td></td>
			<td><a id="step1" style="width:100px"></a></td>
			</tr>						
			</tbody>						
		</table>		
		</div>
		<div id="addparent" title="设备上联" data-options="iconCls:'icon-ok'" style="overflow:auto;padding-left:15px;padding-top:5px;height:355px">
		</div>
		<div id="addonu" title="配置ONU" data-options="iconCls:'icon-ok'" style="overflow:auto;padding-left:15px;padding-top:5px;height:355px">
		<table id="newonu"  style="width:850px;height:355px" >
		</table>
		<div id="compl">
		<a id="pre2"style="width:80px"></a><a id="step3" style="width:120px"></a>
		</div>
		</div>
		
		</div>

</body>
</html>